Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch order of approval-single list queries #772

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

NoahSaso
Copy link
Member

The ordering of approval-single List and ReverseList queries is incorrect and does not match the normal proposal modules. The forward list query has a start_after parameter but was sorted in descending order, which does not make sense. The opposite was true for the reverse list query.

This PR makes the forward list query sort ascending, which makes sense for start_after, and the reverse list query sort descending, which makes sense for start_before.

It also now matches the rest of the codebase.

Copy link

codecov bot commented Nov 16, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e54d447) 96.27% compared to head (4e7c398) 96.32%.

Additional details and impacted files
@@               Coverage Diff               @@
##           development     #772      +/-   ##
===============================================
+ Coverage        96.27%   96.32%   +0.04%     
===============================================
  Files              203      203              
  Lines            50300    50186     -114     
===============================================
- Hits             48428    48341      -87     
+ Misses            1872     1845      -27     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@NoahSaso NoahSaso merged commit 1187dba into development Nov 16, 2023
7 of 9 checks passed
@NoahSaso NoahSaso deleted the noah/switch-approval-list-order branch November 16, 2023 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants